<template>
<!-- 全部政策 -->
  <div class="Details1-content">
    <div class="right-details">
      <div class="details-item" v-for="(item,index) in detailList" :key="item.id">
        <div class="title">
          <div class="symbol"></div>
         {{ item.title }}
        </div>
        <div class="data">
          {{ item.data }}
          <div class="enter" @click="skip()">
            点击查看
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import {getNewsListApi} from '@/api/policy'
export default {
  name: "Details1",
  data(){
    return{
     detailList:[],
      page:1,
      limit:6,
      id:0
    }
  },
  methods:{
    skip(){
      this.$router.push({ name: 'Details' })
    },
    getList() {
      getNewsListApi({page:this.page,limit:this.limit,type:this.id}).then((res) => {
        this.detailList = res.data.list;
      }).catch((res) => {
        // console.log(res)
      })
    },
  },
  mounted() {
    this.utils.createParams(this, this.$route.query);
    //this.getList()
  }
}
</script>

<style lang="scss" scoped>
.right-details{
  box-sizing: border-box;
  width: 1160px;
  height: 520px;
  background-color: #fff;
  border-radius: 20px;
  padding: 45px 30px 45px 30px;
  .details-item{
    width: 1077px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    //background-color: red;

    .title{
      display: flex;
      align-items: center;
      .symbol{
        width: 5px;
        height: 5px;
        border-radius: 10px;
        background-color: #5593F3;
        margin: 0 36px;
      }
      font-size: 21px;
    }
    .data{
      display: flex;
      align-items: center;
      color: #797979;
      font-size: 21px;
      .enter{
        width: 100px;
        height: 36px;
        margin-left: 50px;
        background-color: #FFFFFF;
        border: 1px solid #5593F3;
        color: #5593F3;
        border-radius: 20px;
        text-align: center;
        line-height: 36px;
        font-size: 15px;
      }
    }
  }
}
</style>
